package com.langyiquan.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;


@ApiModel(value = "AddressBO")
public class AddressBO {

    @ApiModelProperty(name = "addressId",value = "地址id,更新需要，添加不需要",required = false)
    private String addressId;

    @ApiModelProperty(name = "userId",value = "用户Id",required = false)
    private String userId;

    @ApiModelProperty(name = "receiver",value = "收件人姓名",required = true)
    @NotBlank(message = "3001")
    private String receiver;

    @ApiModelProperty(name = "mobile",value = "收件人手机号",required = true)
    @NotBlank(message = "1010")
    @Pattern(regexp = "^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\\d{8})$", message = "1012")
    private String mobile;

    @ApiModelProperty(name = "province",value = "省份",required = true)
    @NotBlank(message = "3003")
    private String province;

    @ApiModelProperty(name = "city",value = "城市",required = true)
    @NotBlank(message = "3003")
    private String city;

    @ApiModelProperty(name = "district",value = "地区",required = true)
    @NotBlank(message = "3003")
    private String district;

    @ApiModelProperty(name = "detail",value = "概述",required = false)
    private String detail;

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
